#define _CRT_SECURE_NO_WARNINGS

#include "stack.h"

void TestStack1()
{
	stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);

	while (!StackEmpty(&st))
	{
		StackDataType top = StackTop(&st);
		printf("%d ", top);
		StackPop(&st);
	}
	printf("\n");
}

int main()
{
	TestStack1();
	return 0;
}